﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Topro.Application.Interface
{
    using Topro.Entity;
    using Topro.Entity.Query;
    using Topro.Entity.Response.DeviceData;

    /// <summary>
    /// 设备日志接口
    /// </summary>
    public interface DeviceDataService
    {
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public PagedList<DeviceDataQueryResponse> GetDeviceDataPager(DeviceDataQuery query);

        /// <summary>
        /// 设备数据导出
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public IEnumerable<DeviceDataQueryResponse> GetDeviceDataExport(DeviceDataQuery query);

        /// <summary>
        /// 搜索时间叠状图分析
        /// </summary>
        /// <param name="query">参数</param>
        /// <returns></returns>
        public JResult<TimeAnalysisResponse> TimeAnalysis(TimeAnalysisQuery query);
    }
}
